package com.hoshiicloud.saleorder.service.customer;

import com.baomidou.mybatisplus.extension.service.IService;

import com.hoshiicloud.common.rpc.Response;
import com.hoshiicloud.user.entity.customer.GoodsBrowseRecord;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 商品浏览记录 服务类
 * </p>
 *
 * @author Mr.Wu
 * @since 2019-04-28
 */
public interface IGoodsBrowseRecordService extends IService<GoodsBrowseRecord> {

    Response insert(GoodsBrowseRecord param);

    Response updateDataById(GoodsBrowseRecord param);

    Response deleteDataById(String id);

    Response getDetail(String id);

    Response getList(QueryWrapper<GoodsBrowseRecord> queryWrapper, String key);

    Response getPage(IPage<GoodsBrowseRecord> page, QueryWrapper<GoodsBrowseRecord> queryWrapper, String key);

    /**
     * 获取商品浏览记录根据基础spu分组
     * @return List<Map<String,Object>>
     */
    List<Map<String,Object>> getListGroupByBaseSpuId();
}
